<template>
  <div id="app">
    <!--keep-alive 只请求一次 Ajax，之后从缓存里取
    exclude="Detail"Detail组件不会被缓存-->
      <keep-alive exclude="Detail">
        <!--显示当前路由对应的内容-->
        <router-view/>
      </keep-alive>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style lang="stylus">
</style>
